package dataaccess;

import java.util.List;

import model.Users;
import play.db.jpa.JPA;

public class UsersDataAccess extends BaseDao {

	public static Users getById(Long userid) {
		return getById(Users.class, userid);
	}
	
	public static Long save(Users entity) {
		BaseDao.save(entity);
		return entity.getUserId();
	}
	
	public static void update(Users entity) {
		BaseDao.update(entity);
	}
	
	public static List<Users> getAll(){
		return getAll(Users.class);
	}
	
        @play.db.jpa.Transactional
	public static Users getUsuario(String email, String password){
            return null;
        }
	
	
}
